package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.InvTree;
import com.greyu.ysj.entity.InvTreeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface InvTreeDAO {
    long countByExample(InvTreeExample example);

    int deleteByExample(InvTreeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(InvTree record);

    int insertSelective(InvTree record);

    List<InvTree> selectByExample(InvTreeExample example);

    InvTree selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") InvTree record, @Param("example") InvTreeExample example);

    int updateByExample(@Param("record") InvTree record, @Param("example") InvTreeExample example);

    int updateByPrimaryKeySelective(InvTree record);

    int updateByPrimaryKey(InvTree record);
    
    int updateInvTreebyUserId(InvTree record);
    
    InvTree selectInvTreebyUserId(Integer userId);
    
}